package cn.itcast.pattern.decorator;

/**
 * 装饰者类
 */
public abstract class Garnish extends FastFood{

    private FastFood fastFood;

    public Garnish(float price, String desc) {
        super(price, desc);
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public Garnish( FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
